<?php

class CartForm extends sfForm
{

    public function configure()
    {
        $productIds = $this->getOption('productIds', array());
        foreach ($productIds as $pid)
        {
            $this->embedForm($pid, new OrderDetailsForm());
        }
        $this->disableLocalCSRFProtection();
    }

}
